﻿<!DOCTYPE html>
<html>
<head>



    <meta charset="utf-8">
    <title>Main Page</title>
    
    <!-- WinJS references -->
    <link href="//Microsoft.WinJS.1.0/css/ui-dark.css" rel="stylesheet">
    <script src="//Microsoft.WinJS.1.0/js/base.js"></script>
    <script src="//Microsoft.WinJS.1.0/js/ui.js"></script>
    
    <script src="/js/wpapi.js"></script>
    <link href="/css/default.css" rel="stylesheet">
    <link href="/css/mainpage.css" rel="stylesheet">
    <script src="/js/cat-posts.js"></script>
</head>
<body>
	<div id="catpostsTemplate" data-win-control="WinJS.Binding.Template" style="display: none">
		<div class="post" data-win-bind="id: local_storage_key">
            <div class="post-image-container" style="width:252px;height:234px">
                <img data-win-bind="src: post_image" onload="WPApi.fadeImage(this)" />
            </div>
			<div class="large-post-data">
					<h2 class="post-title" data-win-bind="textContent: post_title"></h2>
					<div class="post-meta theme-color" data-win-bind="textContent: primary_cat.title"></div>
			</div>
		</div>
	</div>


    <div class="fragment catposts gridview">
        <header aria-label="Header content" role="banner">
            <button class="win-backbutton" aria-label="Back"  disabled></button>
            <h1 class="titlearea win-type-ellipsis">
                <span class="pagetitle"></span>
            </h1>
        </header>
         <section aria-label="Main content" role="main">
    		<div id="catposts-list" class="posts-list" data-win-control="WinJS.UI.ListView"></div>
            <progress id="loader" class="show win-ring"></progress>
            <div class="error hide"></div>
        </section>
    </div>
</body>
</html>
